//
//  ViewController.swift
//  Exam-iOS
//
//  Created by 李胜锋 on 2018/2/6.
//  Copyright © 2018年 李胜锋. All rights reserved.
//

import UIKit
import RxCocoa
import RxSwift

class ViewController: UIViewController, PopEnable {
    
    //RX 垃圾回收袋
    var disposeBag = DisposeBag()
    
    
    override func viewDidLoad() {
        super.viewDidLoad()
        view.backgroundColor = UIColor.white
    }
    
    
   
    
    // MARK:-  状态栏， 屏幕旋转
    override var preferredStatusBarStyle: UIStatusBarStyle {
        get {
            return .lightContent
        }
    }
    
    override var shouldAutorotate: Bool {
        get {
            return false
        }
    }
    // 隐藏状态栏
    override var prefersStatusBarHidden : Bool {
        return false
    }
    
    override var supportedInterfaceOrientations: UIInterfaceOrientationMask {
        get {
            return UIInterfaceOrientationMask.portrait
        }
    }
    
    override var preferredInterfaceOrientationForPresentation: UIInterfaceOrientation {
        get {
            return UIInterfaceOrientation.portrait
        }
    }
}


class TableViewController: UITableViewController, PopEnable {
    
    //RX 垃圾回收袋
    var disposeBag = DisposeBag()
    
    // MARK:-  状态栏， 屏幕旋转
    override var preferredStatusBarStyle: UIStatusBarStyle {
        get {
            return .lightContent
        }
    }
    
    override var shouldAutorotate: Bool {
        get {
            return false
        }
    }
    
    override var supportedInterfaceOrientations: UIInterfaceOrientationMask {
        get {
            return UIInterfaceOrientationMask.portrait
        }
    }
    
    override var preferredInterfaceOrientationForPresentation: UIInterfaceOrientation {
        get {
            return UIInterfaceOrientation.portrait
        }
    }
}

